package neu.soft.mapper;

import neu.soft.entity.Vendor;
import neu.soft.query.BasePageQuery;

import java.util.List;

public interface VendorMapper {

    int addVendor(Vendor vendor);

    int updateVendor(Vendor vendor);

    int deleteVendor(Integer vendorId);

    List<Vendor> findAll();

    Vendor findById(Integer vendorId);

    Vendor findByName(String vendorName);

    List<Vendor> findByPage(BasePageQuery baseQuery);
}
